<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>edit</title>
	<hdjs/>
</head>
<body>
	<div class="wrap">
		<div class="menu_list">
			<ul>
				<li><a href="{|U:'index'}" class="action">文章列表</a></li>
				<li><a href="{|U:'add'}">文章添加</a></li>
			</ul>
		</div>
		<form action="" method="post">
			<input type="hidden" name="aid" value="$field.aid">
			<div class="tab">
				<ul class="tab_menu">
					<li lab='base'><a>基本设置</a></li>
					<li lab='other'> <a>其他设置</a></li>
				</ul>
				<div class="tab_content">
					<div id="base">
						<table class="table1 hd-form">
							<tr>
								<th class="w100">栏目</th>
								<td>
									<select name="cid" class="w200" >
										<option value="0">==选择栏目==</option>
										<list from='$category' name='$c'>
											<option value="{$c.cid}" <if value="$c.cid eq $field.cid">selected=''</if>>{$c._name}</option>
										</list>
									</select>
								</td>
							</tr>
							<tr>
								<th>文章标题</th>
								<td>
									<input type="text" name="title" class="w180" value="{$field.title}">
								</td>
							</tr>
							<tr>
								<th>缩略图</th>
								<td>
									<upload size='2' type='jpg,jpeg,png,gif' limit='1' name='thumb' message="0" water="0" data="$field['thumb']"/>			
								</td>
							</tr>
							<tr>
								<th>正文</th>
								<td>
									<ueditor name='content' content="{$field.content}"/>
								</td>
							</tr>
						</table>
					</div>
					<div id="other">
						<table class="table1 hd-form">
							<tr>
								<th class="w100">发表时间</th>
								<td>
									<input type="text" readonly="readonly" id="addtime" name="addtime" value="{|date:'Y/m/d H:i:s'}" class="w180"/>
									<script>
										$('#addtime').calendar({format: 'yyyy/MM/dd HH:mm:ss'});
									</script>
								</td>
							</tr>
							<tr>
								<th>关键字</th>
								<td>
									<input type="text" name="keywords" class="w180" value="{$field.keywords}">
								</td>
							</tr>
							<tr>
								<th>描述</th>
								<td>
									<input type="text" name="description" class="w180" value="{$field.description}">
								</td>
							</tr>
							<tr>
								<th>点击数</th>
								<td>
									<input type="text" name="click" value="100" class="w180" value="{$field.click}">
								</td>
							</tr>
						</table>
					</div>
				</div>
			</div>
			<div class="position-bottom">
				<input type="submit" class="hd-success">
			</div>
		</form>
	</div>
</body>
</html>